import axios from 'axios'
//配置基础地址
const myAxios = axios.create({
    baseURL:'http://localhost/mall-basic-service/',
    headers:{"Allow-Control-Allow-Origin":"*"},
})
//请求拦截器
myAxios.interceptors.request.use(function (config) {
    return config
},function (err) {
    return Promise.reject(err)
})
//相应拦截器
myAxios.interceptors.response.use(function (response) {
    return response
},function (err) {
    return Promise.reject(err)
})
export  default myAxios
